// import Calculator from './Calculator'
//
// export default dictionary
import { injectReducer } from '../../reducers'

export default (store) => ({
    path: '/calculator',
    getComponent(nextState, cb) {
        require.ensure([], (require) => {

            const Calculator = require('./Calculator').default
            const reducer = require('../../reducers/calculator').default

            /*  Add the reducer to the store on key 'counter'  */
            injectReducer(store, { key: 'calculator', reducer })

            /*  Return getComponent   */
            cb(null, Calculator)

        }, 'calculator')
    }
})